﻿@using GoodMan.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "InfoList";
    Layout = "~/Areas/WorkSpace/Views/Shared/_CollegeAdminTemplete.cshtml";

    ItemListBox<Information> pubinfoList = ViewBag.PubInfo;
}

<div id="content-header">
    <h1>招聘信息</h1>
</div>
<div id="breadcrumb">
	<a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>首页</a>
	<a href="/workspace/CollegeAdmin/InfoList" class="tip-bottom">发布管理</a>
	<a href="/workspace/CollegeAdmin/InfoList" class="current">信息列表</a>
</div>
<div class="container-fluid">
  <div class="row-fluid">
     <div class="span12">
     <div class="widget-box">
			<div class="widget-title">			
				<h5>信息列表</h5>
			</div>
			<div class="widget-content nopadding">
				<table class="table table-bordered data-table">
					<thead>
					<tr>
					    <th>编码</th>
					    <th>职位名称</th>
                        <th>招聘单位</th>
					    <th>薪资</th>
					    <th>招聘人数</th>
                        <th>性别要求</th>
                        <th>工作区域</th>
                        <th>有效期</th>
                        <th>联系人</th>
                        <th>联系电话</th>
                        <th>邮箱</th>
                        <th>操作</th>
					</tr>
					</thead>
					<tbody>
                    @{
                        int index = 0;
                        if (pubinfoList != null && pubinfoList.Data != null && pubinfoList.Data.Count > 0)
                        {
                            foreach (var pubinfo in pubinfoList.Data)
                            {
                                index++;
                                <tr class="gradeX">
					                <td>@index</td>
					                <td>@pubinfo.Title</td>
                                    <td>@pubinfo.RecruitDep</td>
					                <td>@pubinfo.SalaryLevel</td>
                                    <td>@pubinfo.RecruitNum</td>
					                <td>@pubinfo.SexReq</td>
					                <td>@pubinfo.WorkArea</td>
                                    <td>@pubinfo.ExpireDate</td>
					                <td>@pubinfo.LinkMan</td>
                                    <td>@pubinfo.Phone</td>
					                <td>@pubinfo.EmailAdress</td>
					                <td class="center"><a href="/workspace/collegeadmin/InfoModify?id=@pubinfo.Id&page=@pubinfoList.CurrentPage" class="btn btn-primary btn-mini">编辑</a>
                                        <a href="/workspace/collegeadmin/DeletePubInfo?id=@pubinfo.Id&page=@pubinfoList.CurrentPage" onclick="if (confirm('确认删除数据？删除后该数据无法恢复！')==true){return true;}else{return false;}" class="btn btn-danger btn-mini">删除</a>
                                    </td>
					            </tr>
                            }
                        }
                        else
                        {
                            <tr class="gradeX"><td colspan="12" align="center">没有找到任何数据！</td></tr>
                        }
                    }			 
					</tbody>
			    </table>  
			</div>
            @Html.Raw(pubinfoList.PageItemSegment)  
		</div>
     </div>
  </div>
  @{
        if (ViewBag.isSuccess!=null){
            if (ViewBag.isSuccess) { 
                <div class="Success">操作成功！</div>
            }else{
                <div class="Error">操作失败！</div>
            }
        }
    }
</div>

@section tail{
<script type="text/javascript" src="/Scripts/jquery.validate.js"></script>
<script type="text/javascript" src="/Scripts/jquery.metadata.js"></script>
<script type="text/javascript" src="/Scripts/messages_cn.js"></script>
<script type="text/javascript" src="/Scripts/plug.js"></script>

<script type="text/javascript">
    $(function () {
        $('#likInfo').addClass('open');

        $('#likInfo').addClass('active');
    });
</script>
}
